===============================================================================
LSSyndication.dll - LiteStepSyndication, created by Xjill (xjill.IV@gmail.com)
===============================================================================

Feature list:
=============
 +	Supports an unlimited number of RSS feeds
 +	Complies to the W3C XML 1.0 standards, and the RSS 2.0 standards
 +	The only thing limiting how many items you can have is your system
	memory!
 +	You can customize what RSS elements you want to display
 +	Background images (with MagicPink)
 +	Doesn't update the news locally if the file on the server hasn't changed
 +	Has a MaxAge setting, removing all news older than the specified period
	(for the feeds which include the publication date)
 +	Can also gradiently color your news according to age, or highlight
	newly published	news.
 +	Support hooking
 +	Can strip HTML ( e.g. strip any text between < and > )
 +	You can customize what actions to perform on the various mouse events
 +	Click-and-drag scrolling, with loop function (loops to other edge of
	screen if you drag through the edge of the screen)
 +	Multiline support



Default button actions:
=======================
These are the default actions for the various mouse button events. You can
customize the actions by using the LssRssMButton*X* where *X* is the number 1-3
(left, right and middle button respectively, see further info later in this
readme). Please also not that one up and one down action is executed before the
double-click action

Left:	Single-click to open link of item under pointer.
Right:	Click-and-drag scrolling, double-click toggles the scrolling (identical
	to !LssRssToggleScrolling)
Middle:	Single-click to jump to next source (identical to !LssRssNextSource)




Available Bang! Commands:
=========================
!LssRssUpdate			Re-fetches the news (Does not reload any .rc
				arguments)
!LssRssBoxHook			Let's LSBox hook LSSyndication (Warning: LSBox
				doesn't support Mouse Wheel)

!LssRssAlwaysOnTop		Sets window to be topmost
!LssRssNormalZOrder		Sets the window to be non-topmost

!LssRssStopScrolling		Stops the scrolling of the news
!LssRssStartScrolling		Starts the scrolling
!LssRssToggleScrolling		Toggles the scrolling (right-clicking the window
				will also perform this)

!LssRssScroll	5		Scrolls the number of pixels you supply (can be
				negative)
!LssRssNextItem			Jumps forward one item
!LssRssPrevItem			Jumps backwards one item
!LssRssNextSource		Jumps forward to the beginning of the next
				source
!LssRssPrevSource		Jumps to the beginning of the previous source
!LssRssJumpToSrc	N	Jumps to the beginning of source #N. First
				source is numbered 1

!LssRssShow			Shows the module
!LssRssHide	[1]		Hides the module, optional argument to continue
				scrolling (use any non-zero value), otherwise it
				stops scrolling.
!LssRssToggle	[1]		Toggles the visibility of the module, same
				argument as !LssRssHide
				
!LssRssMove	X, Y		Moves the module to the specified coordinates
!LssRssResize	W, H		Resizes the module to the specified dimensions




Available .rc arguments:
========================

Adding a source:
----------------
*LssRssURL			"yourLinkToRssFileHere"		[10]
*LssRssURL			"anotherRssFile"		[5]

You can add as many entries like this as you want. The number on the end is an
optional argument specifying the maximum number of items to display from this
source (this setting overrides the LssRssMaxItems setting).


Window visuals:
---------------
LssRssX				0		The position of the
						LSSyndication window on the X
						axis. A negative value is
						relative to the right of the
						screen, an ending 'C' from the
						center. To obtain true negative
						values use '~' in front.
				
LssRssY				0		Same as LssRssX, but for the Y
						axis instead.
LssRssWidth			1280		The width of the window
LssRssHeight			20		The height of the window

LssRssBackgroundColor		CC2222			The background color (in
							hex)
LssRssBackgroundImage		"FullPath\Image.png"	The background image
							(stretches if smaller
							than window)
							
LssRssAlwaysOnTop		If this is set the window will be above all
				other windows
LssRssTransparency		If defined then all parts of the background
				image that are MagicPink (#FF00FF) are
				transparent (fake transparency)
LssRssStartHidden		Allows the module to start hidden. To later
				display it, use the bang commands !LssRssShow or
				!LssRssToggle.

LssRssWaitForBox		The module halts loading until it receives a
				call to the hook bang (see below).


Text formatting:
----------------
LssRssMultiline			If defined the text will be shown in multiline
				and scroll vertically instead of horizontally
				
LssRssVAlign			Top		The vertical alignment of the
						text when in singleline mode,
						can be either Top (default),
						Center or Bottom.

LssRssHAlign			Left		The horizontal alignment of the
						text when in multiline mode,
						can be either Left (default),
						Center or Right

LssRssFontFace			"verdana"	The font to use (defaults to
						"Arial")
LssRssFontSize			14		The size of the text (defaults
						to 12)
LssRssFontColor			FFFFFF		The color of the text (defaults
						to black, 000000)
LssRssFontBold

LssRssVisitedColor		FF00FF		If specified, items that are
						opened are colored this color


Age-dependent coloring:
-----------------------
LSSyndication allows for coloring of items according to age. Either, all items
newer than a specified age can be highlighted, or the items can be colored
gradiently according to age.

For highlighting of new items, use LssRssHighlightAge and LssRssHighlightColor.

For gradient coloring, define LssRssGradientHighlight, and specify
LssRssHighlightAge, LssRssGradientA and optionally LssRssGradientB.



LssRssGradientHighlight		If defined, gradient coloring will be used.
				Requires that LssRssHighlightAge is set.

LssRssHighlightAge		0		Sets the maximum age of items to
						be colored. If 0 (default),
						highlighting will not be used
						unless LssRssGradientHighlight
						is specified, where LssRssMaxAge
						will be used (if this also is 0,
						coloring is disabled)

LssRssHighlightColor		FF0000		The color of highlighted items
						(defaults to red, FF0000)
						
LssRssGradientA			FF0000		The color of the newest items
						when using gradient,
						age-dependent coloring

LssRssGradientB			000000		Optional color for items close
						to LssRssHighlightAge. Any items
						older than that is colored using
						LssRssFontColor. If not
						specified, LssRssFontColor is
						used
						
The following example will color all items published in the last 24 hours, from
red (newest items) to a dark grey. All items older than 24 hours will be colored
dark blue:

LssRssFontColor			000060
LssRssGradientHighlight
LssRssHighlightAge		24
LssRssGradientA			FF0000
LssRssGradientB			404040


Rss formatting:
---------------
LssRssDelimiter			" :: "		The delimiter between the
						different items (default:
						" :: "), (if "" (empty), a
						single space is used). This
						setting is not used in multiline
						mode

LssRssTitleFormat		"-<title>: "	The data around the title. This
						is not used if
						LssRssNoDescriptions is defined!
						If only one argument supplied
						(no "<title>"), it uses that on
						both sides.
						Default: "<title>: ", can be
						empty ( "" ) (equals "<title>")
						
LssRssNoDescriptions		If defined the <description> of an item is
				ignored (uses only the title)

LssRssNoSrcTitle		If defined the title of the source will not be
				shown before the items, only the items will be
				displayed. You can still access the title
				through the exported evar described further
				down

LssRssNoSrcSpacing		Removes spacing between the sources
				
LssRssStripHtml			If defined the module will strip everything in
				the data between matching pairs of < and >
				brackets (including brackets defined in CDATA
				sections). This is meant to help remove HTML
				code but won't distinguish between real HTML and
				other uses of these brackets. There really
				shouldn't be HTML in RSS, but since some people
				still use it, I've included this


Scroll settings:
----------------
LssRssNoDragScrollLoop		Define this to prevent the mouse cursor looping
				from one edge of the screen to another when
				drag-scrolling

LssRssScrollInterval		50		The scrolling update interval
						(in ms).  Default: 50

LssRssScrollSpeed		2		The number of pixels to move
						each scroll update. Default: 1

LssRssScrollPause		1000		This feature allows for
						line-by-line scrolling when in
						multiline mode. This setting is
						the number of ms to wait between
						each line-scroll


ToolTips:
---------
LssRssToolTips			Specify this to enable ToolTips, i.e. hovering
				over the text with the mouse cursor will popup a
				little window containing the item description

LssRssWidth			300		Specifies the width of the
						ToolTip window. Defaults to the
						module width

LssRssTTTextColor		RRGGBB		The ToolTip text color
LssRssTTBackgroundColor		RRGGBB		The ToolTip background color

ToolTips delays:
The following options specify the delays for the ToolTip given in miliseconds.
Init is how long to hover before the ToolTip appears, Pop for how long before it
dissapears automatically, and Reshow for how quickly it comes back after f.ex.
disappearing after a button-click. Specify -1 to use system default (calculated
from double-click time), and -2 uses a really high setting (~32 seconds)

LssRssTTInit			-1
LssRssTTPop			-1
LssRssTTReshow			-1




Other settings:
---------------
LssRssLoadingMessage		"Loading..."	If specified, this is what will
						be shown when loading the files.

LssRssNoDataMessage		"No items to show"	If specified this is
						what will be shown if there's no
						valid items to display.

LssRssDontConnectOnStart	If specified, module will not connect on load,
				nor start the timer for automatic updating. To
				connect and start the timer, call !LssRssUpdate

LssRssUpdateInterval		0		The number of minutes to pass
						before to automatically update
						the news. Never updates
						automatically if set to 0 (which
						is the default).
						NOTE: Some sites (like
						slashdot.org) ban your IP if you
						update too often! (slashdot.org
						sets the limit to 30 min, but
						this can vary from site to site)

LssRssMaxAge			0		The maximum age of a news item
						in hours. Set to 0 (default) to
						disable this feature.

LssRssMaxItems			0		The maximum number of items per
						URL (global number, see also
						*LssRssURL). Set to 0 for
						unlimited (default)

LssRssUseProxy			If specified LSSyndication will connect to the
				server through the proxy specified in your
				Internet Explorer settings (read more below)


Customizing buttons:
--------------------
LssRssMButton1			[!UpAction;!DownAction;$DoubleClickAction$]

This setting allows you to define custom actions to perform on the various mouse
events. LssRssMButton1 is for the left button, 2 is for the right and 3 for the
middle mouse button.

You can set the action to either:
	- A bang command
	- A path to an executable
	- .none or !none to specify that no action is to be performed
	- Leave it blank to perform the default action (which is hard-coded ->
	  faster than specifying the identical !bang command)
	- Use one of the escapes:
		* Use "%link" (case-sensitive) to execute the link of the item
		  which is under the cursor. This escape can also be used in
		  combination with a bang or executable (see examples below).
		* Use "%DragScroll" in the up and down action fields to assign
		  this button for click-and-drag scrolling. You can still supply
		  a double-click action for this button (i.e.. blank, .none, or
		  an action), see examples below.
		* Use "%visited" to make the targetted item get colored with
		  LssRssVisitedColor, without opening the item

Examples:
This example switches the default behavior of the right and middle mouse button:

LssRssMButton2			[.none;!LssRssNextSource;!none]
LssRssMButton3			[%DragScroll;%DragScroll;!LssRssToggleScrolling]

In the following example left-clicking opens with the default browser

LssRssMButton1			[%link;.none;.none]


Getting the title of the current source:
----------------------------------------
LssRssCurSrcChange		<command>

To get the title of the current source (defined as the first source which has
visible content on screen), use the exported variable $LssRssCurSrc$ (should be
quoted). You can register a command to be executed every time this is updated.
You can also include the escape %cursrc (case-sensitive) in the command to
include the new value of the evar.

LssRssEvarQuotes		If defined quotes are added to the string before
				exporting. For using the $$-version of the evar
				this is needed or else only the first token is
				used. However if using 'exportedevar' in xLabel,
				these quotes will then show up! To control this
				behaviour use this setting

This example updates the label called SourceLabel with the new source title:

LssRssCurSrcChange		"!SourceLabelSetText %cursrc"


Connecting through a proxy:
===========================
If LssRssUseProxy is defined, LSSyndication uses the manually set proxy address
from your Internet Explorer settings. To edit this address goto the IE menu
"Tools" -> "Internet Options" -> "Connections" tab -> "Settings..." (or
"LAN Settings..." if connected through a LAN).




Known Issues:
=============
All version are released without any know issues, unfortunately I don't have the
possibility to test the module too much before some releases, so some issues
might still exist. Please report any issues you find! In the cases where the
issue is hindering normal functionality a quickfix is normally released as soon
as I've got the problem sorted out.




Version History:
================
- 2.1
*Added support for !refresh
*Now reports Revision Id to !about dialog
*Fixed issues with date comparsions (LssRssMaxAge and LssRssHighlightAge).
*Fixed !LssRssResize
*Tweaked timing for change of $LssRssCurSrc$
*Added !LssRssJumpToSrc
*Added LssRssVisitedColor for coloring visited items (non-remembering)
*Added %visited as mouse command escape
*Fixed .none / !none for custom mouse commands
*Fixed (not) stripping HTML
*Added ToolTips for displaying descriptions

- 2.0:
With this release much of the code has been rewritten to allow me to add some
features which couldn't have been implemented otherwise.

*Added Unicode support
*Improved XML parsing (now uses eXpat, see expat.org for more information)
*Now displays the data as soon as it is received!
*Added LssRssWaitForBox
*Added LssRssCurSrcChange and export of $LssRssCurSrc$
*Added LssRssHAlign
*Added LssRssScrollPause
*Added resize and move !bang-commands
*Improved handling of mouse commands
*Improved HTML-stripping
*Improved handling of HTML/XML escapes
*Removed the black border which were present when using a solid background color
*Removed LssRssNoMessageBoxes (only displays message boxes on fatal errors)
*Removed LssRssCheckForNewVersion
  - .1:
	*Now unloads the module if hooked and parent window is destroyed
	*Fixed a bug where channels were reported twice when updating and the
	 server says the file hasn't changed
	*You can now specify a LssRssScrollInterval of 0 (earlier this lead to
	 the default value being used)
	*Corrected the default value of LssRssScrollInterval (70 had been used
	 instead of 50 in ver. 2.0)
	*Added some missing entries on age-dependent coloring,
	 LssRssDontConnectOnStart and LssRssScrollPause to the readme. Also
	 improved documentation of some other features.
	*Improved line-by-line scrolling, especially in regards of alignment of
	 text when pausing
	*Added support for sources encoded in iso-8859-X (now supports 1-16)
	*Added LssRssEvarQuotes, and changed default to not using quotes
	*Added LssRssNoSrcTitle
	*Added LssRssNoSrcSpacing
	*Fixed bug where module went into an infinite loop if removing HTML and
	 a '<' without a matching '>' were found
	*Various small optimizations



- 1.3:
*Now also works if no <title> tag in the item
*Added item highlighting by either single or gradient coloring
*Further fixed drag-scrolling on multi monitor systems (now also works with
 monitors left of the primary screen)
*Improved multiline support
  - .1:
	*Fixed default highlighting behavior (now it doesn't highlight anything
	 if not LssRssHighlightAge is defined, or this is 0 or below.

- 1.2:
*Fixed problem with a solid-color background when position was non-zero
*Added multiline support
*Rewrote some old parts of the code to reduce CPU usage and make it less
 error-prone
*Fixed drag-scrolling on multi monitor systems
*Fixed it so that if a source now contains now valid items (all too old), the
 source title is not displayed either
*Added proxy support
*Added LssRssNoDataMessage

- 1.1:
*Fixed module sometimes crashing when trying to open more than one link at the
 same time
*Added LssRssMButton to allow specifying custom actions on mouse events
*Added click-and-drag scrolling functionality
*Added LssRssNoDragScrollLoop to disable looping functionality when using
 drag-scrolling
*Added !LssRssScroll to allow scrolling of specified number of pixels
*Added ability to customize the mouse button event actions (LssRssOnMButtonX)
*Fixed delimiter disappearing on recycle (bug since ver 1.0.1)
*Added LssRssFontBold
*Optimized some code, mainly with focus on CPU usage

- 1.0:
*Fixed bug when LssRssMaxAge where set to 0
*Added LssRssStartHidden
  - .1:
	*Added LssRssVAlign
	*Added LssRssStripHtml
	*Fixed the version checking, which were broken
	*Added optional argument for !LssRssHide and !LssRssToggle to keep
	 scrolling when hidden
  - .2:
	*Fixed problem with certain sources when checking to see if the file is
	 a valid RSS file
  - .3:
  	*Quickfix to sort the ugly businesses which made the module freeze when
	 updating the news, sorry, my bad!

- b0.9:
*Added background images (with magic pink, though not real transparency)
*Fixed a problem with !LssRssNextSource when the first file wasn't valid
*Fixed the network code to use the "If-Modified-Since" header, so it won't
 update the local news if the file hasn't been modified. This feature eases the
load on both the server and you! (For servers supporting this feature of course)
  - .1:
	*Quickfix for some bugs
  - .2:
	*Added LssRssMaxAge
	*Added support for ASCII numeral text escapes (like &#039; = ' ) and the
	 most common HTML escapes (like &quest; = ? )
  - .3:
	*Added LssRssCheckForNewVersion
	*Added !LssRssHide, !LssRssShow and !LssRssToggle
	*Added !LssRssNextItem and !LssRssPrevItem
	*Small performance and bug fixes
  - .4:
	*Bug fixes and tweaking
	*Changed LssRssX and LssRssY handling
	*Removed LssRssHugBottom
	*Added LssRssLoadingMessage
	*Added LSBox hook: !LssRssBoxHook


- b0.8:
*Fixed some things which gave (heavy) crashes
  - .1: *Fixed further crashes
  - .2: *Fixed some problems regarding libraries
	*Fixed LssRssMaxItems
	*Added !LssRssNextSource
	*Did some minor performance improvements

- b0.7:
Completely new network code, and some small fixes all around

- b0.6:
First release, don't know how many had it, probably none :D


------------------------------------------------------------

Please contact me (xjill.IV@gmail.com) if there's anything you would like
improved or you find any bugs!

============================================================
Xjill
xjill.IV@gmail.com
============================================================
"Everything you perceive, is only the result of your abstraction of the
movements of particles"

